import Vue from 'vue'
import VueRouter from 'vue-router'
import Recommend  from 'components/Recommend'
import Singer  from 'components/Singer'
import Search  from 'components/Search'
import Collect  from 'components/Collect'
import Play from "components/Play"
Vue.use(VueRouter)

const routes = [
  { path: '/recommend',component: Recommend },
  { path: '/singer',component: Singer },
  { path: '/search',component: Search },
  { path: '/collect',component: Collect },
  { path: '/play/:id',component: Play },
  { path: '/',redirect:'/recommend' }
]

const router = new VueRouter({
  routes
})

export default router
